﻿#pragma once

#include "plugin2_global.h"
#include "../Interface/interface1.h"    //引入接口
#include "ui_plugin2.h"                 //引入自动生成的ui文件

#pragma execution_character_set("utf-8")

class PLUGIN2_EXPORT Plugin2
    //:public QObject
    :public QWidget
    ,public Interface1
{
    //宏3联
    Q_OBJECT
    Q_PLUGIN_METADATA(IID Interface1_IID)   //描述插件数据
    Q_INTERFACES(Interface1)                //本类要实现的接口
public:
    Plugin2();
    ~Plugin2();    
    virtual QString title() override;
    virtual QString version() override;
    virtual void processImage(const cv::Mat& inputImg, cv::Mat& outputImg) override;
private:
    Ui::Plugin2Ui ui;

signals:
    void updateNeeded();
};
